package singleton
{
	import mx.collections.ArrayCollection;

	public class ATLSingleton
	{
		private static var atl:ATLSingleton;
		private var id:String;
		private var actualRules:ArrayCollection;
		
		public function ATLSingleton(singletonKeeper:SingletonKeeper)
		{
			this.id = id;
		}
		
		public static function getInstance():ATLSingleton {
			if (atl == null) {
				atl = new ATLSingleton(new SingletonKeeper());
			}
			return atl;
		}
		
		public function setCurrentId(newId:String):void {
			this.id = newId;
		}
		
		public function getCurrentId():String {
			return this.id;
		}
		
		public function setATLRules(rules:ArrayCollection):void {
			this.actualRules = rules;
		}
		
		public function getATLRules():ArrayCollection {
			return this.actualRules;
		}
	}
}